package com.qf.page;


import com.qf.pojo.User;

import java.util.List;

public class PageBean<T> {
    //当前页
    private int currentPage;
    //每页的大小
    private int pageSize;

    //当前页数据
    private List<T> data;

    //总记录数
    private  int count;

    //总页数
    private int totalPage;

    public PageBean() {
    }

    public PageBean(int currentPage, int pageSize, List<T> data, int count, int totalPage) {
        this.currentPage = currentPage;
        this.pageSize = pageSize;
        this.data = data;
        this.count = count;
        this.totalPage = totalPage;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "currentPage=" + currentPage +
                ", pageSize=" + pageSize +
                ", data=" + data +
                ", count=" + count +
                ", totalPage=" + totalPage +
                '}';
    }
}
